package com.ruoyi.com.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.ruoyi.common.core.domain.BaseDomain;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 阿里云OSS对象 com_aliyun_config
 *
 * @author sunye
 * @date 2024-12-06
 */
@Data
public class ComAliyunConfig
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value ="id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "存储空间")
    @Excel(name = "存储空间")
    private String bucketName;

    @ApiModelProperty(value = "节点")
    @Excel(name = "节点")
    private String endpoint;

    @ApiModelProperty(value = "秘钥ID")
    @Excel(name = "秘钥ID")
    private String accessKeyId;

    @ApiModelProperty(value = "秘钥")
    @Excel(name = "秘钥")
    private String accessKeySecret;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bucketName", getBucketName())
            .append("endpoint", getEndpoint())
            .append("accessKeyId", getAccessKeyId())
            .append("accessKeySecret", getAccessKeySecret())
            .toString();
    }
}
